package com.community.body.domain;

import com.community.common.annotation.Excel;
import com.community.common.core.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 社区互动对象 zy_community_interaction
 *
 * @author community
 * @date 2024-04-16
 */
public class ZyCommunityInteraction extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long interactionId;

    /**
     * 小区ID
     */
    @Excel(name = "小区ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long communityId;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;

    /**
     * 删除状态0默认1删除
     */
    private Long delFlag;

    /**
     * 创建人ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Excel(name = "创建人ID")
    private Long userId;

    public void setInteractionId(Long interactionId) {
        this.interactionId = interactionId;
    }

    public Long getInteractionId() {
        return interactionId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }

    public Long getCommunityId() {
        return communityId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("interactionId", getInteractionId()).append("communityId", getCommunityId()).append("createBy", getCreateBy()).append("updateBy", getUpdateBy()).append("createTime", getCreateTime()).append("updateTime", getUpdateTime()).append("content", getContent()).append("delFlag", getDelFlag()).append("remark", getRemark()).append("userId", getUserId()).toString();
    }
}
